package a.e.a;

import java.util.HashMap;
import java.util.Map;

public class r
  implements j.a_
{
  protected int a;
  protected Map b = new HashMap();
  protected Map c = new HashMap();
  protected r d;
  public static int e;
  public static boolean f;
  
  public void a(String paramString, r paramr)
  {
    this.b.put(paramString, paramr);
  }
  
  public void a(String paramString)
  {
    boolean bool = f;
    if (!bool) {
      if (this.a == 0)
      {
        r localr = (r)this.b.get(paramString);
        if (bool) {
          break label79;
        }
        if (localr == null) {
          break label78;
        }
        this.d = localr;
        this.d.a();
        if (bool) {
          return;
        }
        if (e == 0) {
          break label78;
        }
      }
    }
    if (!bool) {
      if (this.d != null) {
        this.d.a(paramString);
      }
    }
    label78:
    label79:
    this.a += 1;
  }
  
  public void b(String paramString)
  {
    boolean bool = f;
    this.a -= 1;
    if (!bool) {
      if (this.a == 0)
      {
        if (bool) {
          break label60;
        }
        if (this.d != null)
        {
          this.d.b();
          a(this.d);
          this.d = null;
        }
      }
    }
    label60:
    if ((bool) || (this.d != null)) {
      this.d.b(paramString);
    }
  }
  
  public void a(String paramString1, String paramString2)
  {
    boolean bool = f;
    if (!bool) {
      if (this.a == 0) {
        a(paramString1, paramString2);
      }
    }
    if ((bool) || (this.d != null)) {
      this.d.a(paramString1, paramString2);
    }
  }
  
  public void a(String paramString, Number paramNumber)
  {
    boolean bool = f;
    if (!bool) {
      if (this.a == 0) {
        a(paramString, paramNumber);
      }
    }
    if ((bool) || (this.d != null)) {
      this.d.a(paramString, paramNumber);
    }
  }
  
  public void a(String paramString, Object paramObject)
  {
    this.c.put(paramString, paramObject);
  }
  
  public boolean c(String paramString)
  {
    boolean bool = f;
    Object localObject = this.c.get(paramString);
    if ((bool) || (localObject != null))
    {
      if (!bool) {
        if ((localObject instanceof Number))
        {
          if (!bool) {}
          return ((Number)localObject).intValue() != 0;
        }
      }
      return "true".equals(localObject.toString());
    }
    return false;
  }
  
  public String d(String paramString)
  {
    Object localObject = this.c.get(paramString);
    if ((f) || (localObject != null)) {
      return localObject.toString();
    }
    return "";
  }
  
  public double e(String paramString)
  {
    Object localObject = this.c.get(paramString);
    if ((f) || (localObject != null)) {
      return ((Number)localObject).doubleValue();
    }
    return 0.0D;
  }
  
  public double a(String paramString, double paramDouble)
  {
    Object localObject = this.c.get(paramString);
    if ((f) || (localObject != null)) {
      return ((Number)localObject).doubleValue();
    }
    return paramDouble;
  }
  
  public int f(String paramString)
  {
    Object localObject = this.c.get(paramString);
    if ((f) || (localObject != null)) {
      return ((Number)localObject).intValue();
    }
    return 0;
  }
  
  public int a(String paramString, int paramInt)
  {
    Object localObject = this.c.get(paramString);
    if ((f) || (localObject != null)) {
      return ((Number)localObject).intValue();
    }
    return paramInt;
  }
  
  public void a()
  {
    this.c.clear();
  }
  
  public void b() {}
  
  public Object c()
  {
    return this.c;
  }
  
  public void a(r paramr) {}
  
  public int d()
  {
    return this.a;
  }
  
  public Map e()
  {
    return this.c;
  }
}


/* Location:           E:\idea\
 * Qualified Name:     a.e.a.r
 * JD-Core Version:    0.7.0.1
 */